package com.secondGroup.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ws
 * @since 2022-05-05
 */
@Getter
@Setter
@TableName("t_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    @TableField("account")
    private String account;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 登录密码
     */
    @TableField("login_password")
    private String loginPassword;

    /**
     * 0为未登录 1为已登录
     */
    @TableField("login_status")
    private Integer loginStatus;

    /**
     * 登录时间
     */
    @TableField("register_time")
    private LocalDateTime registerTime;

    /**
     * 电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 电子账户表的id
     */
    @TableField("e_id")
    private String eId;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", name='" + name + '\'' +
                ", loginPassword='" + loginPassword + '\'' +
                ", loginStatus=" + loginStatus +
                ", registerTime=" + registerTime +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", eId='" + eId + '\'' +
                '}';
    }
}
